package cn.iocoder.yudao.module.erp.controller.admin.finance.financein.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 收入单分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class FinanceInPageReqVO extends PageParam {

    @Schema(description = "订单号")
    private String billNo;

    @Schema(description = "上游销售订单id", example = "23114")
    private Long linkId;

    @Schema(description = "上游销售订单号")
    private String linkNo;

    @Schema(description = "收款日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] billDate;

    @Schema(description = "收款金额")
    private BigDecimal amount;

    @Schema(description = "付款方")
    private String payer;

    @Schema(description = "收入类型id", example = "14113")
    private Long incomeId;

    @Schema(description = "收入类型名称", example = "全款")
    private String incomeName;

    @Schema(description = "账户id", example = "19617")
    private Long accountId;

    @Schema(description = "账户名称", example = "张三")
    private String accountName;

    @Schema(description = "经办人id", example = "12139")
    private Long operatorId;

    @Schema(description = "经办人名字", example = "张三")
    private String operatorName;

    @Schema(description = "项目id", example = "16265")
    private Long projectId;

    @Schema(description = "项目名称", example = "张三")
    private String projectName;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

    @Schema(description = "附件")
    private String file;

    @Schema(description = "添加时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}